package com.iad.controller
{
	import com.adobe.cairngorm.control.FrontController;
	import com.iad.controller.command.*;
	import com.iad.controller.event.*;
	

	public class MainController extends FrontController {
	
		public function MainController() {
			addCommand(InitializationEvent.GET_PROPERTIES, InitializationCommand);
			addCommand(AdminEvent.EDIT_MODE, AdminCommand);
			addCommand(AdminEvent.CANCEL_MODE, AdminCommand);
			addCommand(AdminEvent.PREVIEW_MODE, AdminCommand);
			addCommand(AdminEvent.PUBLISH_MODE, AdminCommand);
			addCommand(SiteEvent.DO_LOGIN, InitializationCommand);
			addCommand(PageEvent.GET_PAGES, PageCommand);
			addCommand(PageEvent.SAVE_PAGE, PageCommand);
			addCommand(PageEvent.SAVE_PAGES, PageCommand);
			addCommand(PlaylistEvent.GET_PLAYLIST, PlaylistCommand);
			addCommand(PlaylistEvent.GET_PLAYLIST_FROM_NEW_SITE, PlaylistCommand);
			addCommand(PlaylistEvent.GET_SITE_PLAYLISTS, PlaylistCommand);
			addCommand(SiteEvent.GET_SITE_VIDEOS, SiteCommand);
			addCommand(SiteEvent.GET_SITE, SiteCommand);
			addCommand(SiteEvent.GET_SITE_BY_LABEL, SiteCommand);
			addCommand(SiteEvent.NEW_SITE, SiteCommand);
			addCommand(SiteEvent.UPDATE_SITE_PROFILE, SiteCommand);
			addCommand(SiteEvent.GET_SITES, SiteCommand);
			addCommand(SiteEvent.SUBMIT_REVIEW, SiteCommand);
			addCommand(SiteEvent.MODERATE_REVIEWS, SiteCommand);
			addCommand(SiteEvent.APPROVE_REVIEWS, SiteCommand);
			addCommand(PlaylistEvent.DELETE_SONG, PlaylistCommand);
			addCommand(UploadEvent.UPLOAD_NEW_SITE_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SIGNUP_SITE_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SIGNUP_PLAYLIST_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SITE_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SITE_EDIT_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_PAGE_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SIGNUP_PAGE_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_NEW_PLAYLIST_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_PLAYLIST_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_VIDEO, UploadCommand);
			addCommand(UploadEvent.UPLOAD_VIDEO_IMAGE, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SONG, UploadCommand);
			addCommand(UploadEvent.UPLOAD_SIGNUP_SONG, UploadCommand);
			addCommand(DownloadEvent.DOWNLOAD_SONG, DownloadCommand);
			addCommand(SignupEvent.SEND_CONTACT_MESSAGE, SignupCommand);
			addCommand(SignupEvent.SEND_WELCOME_EMAIL, SignupCommand);
		}
	}
}
